<?php get_header(); ?>

<?php if (get_option('evid_featured') == 'on') { get_template_part('includes/featured'); } ?>

<div id="wrapper2">
<div id="container">
    <div id="left-div">
        <!--Begind recent post-->
<style type="text/css">
#nav { margin: 5px auto }
#nav a { padding: 4px 6px; margin: 3px; border: 1px solid #ccc; text-align: center; text-decoration: none; background-color: #ddd }
#nav a.activeSlide { color: #c00 }
#nav a:focus { outline: none; }
.s6{
 margin: 5px auto; padding: 0;  clear: left; }
.sps { margin: 0; padding: 0; }
.s6,.sps{
height: 180px; width: 740px;

}

.s6,img{
padding: 1px; border: 1px solid #ccc; background-color: #eee;  margin: 0

}

.abc{ width:350px; float:left;
}
.def{ width:340px; float:right;
}
.slideshow { margin: 5px auto; padding: 0;  clear: left; }
.slide { margin: 0; padding: 0; }
.slideshow, .slide { height: 85px; width: 604px; }
.slideshow img { padding: 1px; border: 1px solid #ccc; background-color: #eee;  margin: 0 }

</style>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://malsup.github.com/jquery.cycle.all.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'scrollLeft',
		delay: 5000

	});
	$('#s6').cycle({ 
    
	fx:     'fade', 
    timeout: 6000 ,
	delay:6500
   });
});
</script>
</head>
<body>
	
    <br>
	
	<div style="margin:auto;text-align:center"><div id="nav"></div></div>
		<?php 
		query_posts('cat=32&showposts=5');;
$cnt1= 0;
?>

<div id="s6" style="position: relative; overflow: hidden;">


     
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<table><tr><td><?php the_time('dS'); ?>&nbsp;&nbsp;&nbsp;By <?php the_author('<h3>', '</h3>'); ?></td><td width="10px">&nbsp;</td><td>tempreature here</td></tr><tr><td>
<img src="http://bigvoicesmedia.biz/wp-content/uploads/2012/12/rev_war.jpg" width="300" height="180" /></td><td width="10px">&nbsp;</td><td><table>
<tr height="25px;"><td colspan="2" style="text-align:left; top:0px"><a href="<?php the_permalink(); ?>"<?php the_title( '<h3>', '</h3>' ); ?></a></td></tr>
<tr height="150px;" style="min-height:150px;"><td colspan="2" style="text-align:left; top:0px;"><?php the_content('Read More'); ?></td></tr></table></td></tr></table>

<?php endwhile; ?><?php else : ?><h2>Not Found</h2><?php endif; ?>

			</div>
			<div style="height:30px;">&nbsp;</div>
	
<div style="font-size:14px !important; color:#000000; font-weight:bold; background-color:#F0F0F0; text-align:left; border: #CCCCCC 2px solid; padding-left:6px;border-radius:20px;">Check out our featured networks!</div>
		<div style="margin:auto;text-align:center"><div id="nav"></div></div>
		<?php 
		$subcategories = get_categories('&child_of=4&hide_empty');
$cnt1= 0;
?>

<div class="slideshow">

<div class="slide">
<?php
foreach ($subcategories as $subcategory) {

$catlink = get_category_link($subcategory->term_id);
$catname = $subcategory->name;
$caticon = "select * from wp_ig_caticons where cat_id='".$subcategory->term_id."'";
$qun = mysql_query($caticon);
$datacat = $wpdb->get_results($caticon);
$count = mysql_num_rows($qun);
if($count >0){
$cnt1++;
}
if($cnt1==5 || $cnt1==9 || $cnt1==13 || $cnt1==17 || $cnt1==21 || $cnt1==25 || $cnt1==29 || $cnt1==33 || $cnt1==37){ ?>
</div><div class="slide"> 
<?php } 
foreach ($datacat as $dct) {
$catpath = 'http://bigvoicesmedia.biz/'.$dct->icon;	
 ?>
	
		<a href="<?php echo $catlink; ?>" class="network"><img src="<?php echo $catpath; ?>" width="89" height="75" /></a>	
			<?php } }  ?></div></div>
			
			<div style="margin:auto;text-align:center"><div id="nav"></div></div>
		<?php 
		$subcategories = get_categories('&child_of=5&hide_empty');
$cnt1= 0;
?>
<br/>
<div style="font-size:14px !important; color:#000000; font-weight:bold; background-color:#F0F0F0; text-align:left; border: #CCCCCC 2px solid; padding-left:6px;border-radius:20px;">Today's Headlines</div>

            
            
            
			
			
			
	<div style="height:15px;"></div>
        <div style="width:620px;height:400px;padding-left:4px;"><?php include('feeds.php') ?></div>	
        <div style="clear: both;"></div>
asdf
        <?php //if (get_option('evid_catbox') == 'on') { get_template_part('includes/catbox'); } ?>
        <div style="clear: both;"></div>
        <?php //if (get_option('evid_randompopular') == 'on') { get_template_part('includes/popular'); } ?>
  
    
    
    
    
    </div>
    <?php get_sidebar(); ?>
    <br>
<br>
<?php get_footer(); ?>
</body>
</html>